<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>AngularJS基于模块化的MVC</title>
		<script type="text/javascript" src="../js/angular.min.js" ></script>
	</head>
	<body ng-app="myApp" ng-controller="myController">
		名称:<input type="text" ng-model="name" /><br />
		显示名称:{{name}}<br />
		ng-bind显示方式:<div ng-bind="name"></div><br />
	</body>
</html>
<script>
	var myApp = angular.module("myApp",[]);
	myApp.controller("myController",["$scope",function($scope){
		$scope.name="乱世出英雄";//赋值
	}])
</script>